//  Copyright (c) Microsoft Corporation.  All Rights Reserved.
using System.ServiceModel;
using System.ServiceModel.PeerResolvers;

namespace DevChat.Chat
{
    class DefaultCustomResolver
    {
        public static void Go()
        {
            // Create a new resolver service
            CustomPeerResolverService crs = new CustomPeerResolverService();
            crs.ControlShape = false;

            // Create a new service host
            ServiceHost customResolver = new ServiceHost(crs);

            // Open the resolver service 
            crs.Open();
            try
            {
                customResolver.Open();
            }
            catch
            {
                //TODO improove this
                //nothing
            }
        }
    }
}
